package com.jwtter.generator.db.jdbc;

/**
 * jdbc 中的 Column属性信息
 * 
 * @date 2017年6月15日
 * @author jinwt
 *
 */
public class Column {
	// TABLE_CAT String => table catalog (may be null)
	String TABLE_CAT;
	// TABLE_SCHEM String => table schema (may be null)
	String TABLE_SCHEM;
	// TABLE_NAME String => table name
	String TABLE_NAME;
	// COLUMN_NAME String => column name
	String COLUMN_NAME;
	// DATA_TYPE int => SQL type from java.sql.Types
	String DATA_TYPE;
	// TYPE_NAME String => Data source dependent type name, for a UDT the type name is fully
	// qualified
	String TYPE_NAME;
	// COLUMN_SIZE int => column size.
	int COLUMN_SIZE;
	// BUFFER_LENGTH is not used.
	int BUFFER_LENGTH;
	// DECIMAL_DIGITS int => the number of fractional digits. Null is returned for data types where
	// DECIMAL_DIGITS is not applicable.
	int DECIMAL_DIGITS;
	// NUM_PREC_RADIX int => Radix (typically either 10 or 2)
	int NUM_PREC_RADIX;
	// NULLABLE int => is NULL allowed.
	// columnNoNulls - might not allow NULL values
	// columnNullable - definitely allows NULL values
	// columnNullableUnknown - nullability unknown
	int NULLABLE;
	// REMARKS String => comment describing column (may be null)
	String COLUMN_DEF;
	// COLUMN_DEF String => default value for the column, which should be interpreted as a string
	// when the value is enclosed in
	// single quotes (may be null)
	int SQL_DATA_TYPE;
	// SQL_DATA_TYPE int => unused
	int SQL_DATETIME_SUB;
	// SQL_DATETIME_SUB int => unused
	int CHAR_OCTET_LENGTH;
	// CHAR_OCTET_LENGTH int => for char types the maximum number of bytes in the column
	int ORDINAL_POSITION;
	// ORDINAL_POSITION int => index of column in table (starting at 1)
	String IS_NULLABLE;
	// IS_NULLABLE String => ISO rules are used to determine the nullability for a column.
	// YES --- if the column can include NULLs
	// NO --- if the column cannot include NULLs
	// empty string --- if the nullability for the column is unknown
	String SCOPE_CATALOG;
	// SCOPE_CATALOG String => catalog of table that is the scope of a reference attribute (null if
	// DATA_TYPE isn't REF)
	String SCOPE_SCHEMA;
	// SCOPE_SCHEMA String => schema of table that is the scope of a reference attribute (null if
	// the DATA_TYPE isn't REF)
	String SCOPE_TABLE;
	// SCOPE_TABLE String => table name that this the scope of a
	// reference attribute (null if the DATA_TYPE isn't REF)
	short SOURCE_DATA_TYPE;
	// SOURCE_DATA_TYPE short => source type of a distinct type or user-generated Ref type, SQL type
	// from java.sql.Types (null if DATA_TYPE isn't DISTINCT or user-generated REF)
	String IS_AUTOINCREMENT;
	// IS_AUTOINCREMENT String => Indicates whether this column is auto incremented
	// YES --- if the column is auto incremented
	// NO --- if the column is not auto incremented
	// empty string --- if it cannot be determined whether the column is auto incremented
	String IS_GENERATEDCOLUMN;
	// IS_GENERATEDCOLUMN String => Indicates whether this is a generated column
	// YES --- if this a generated column
	// NO --- if this not a generated column
	// empty string --- if it cannot be determined whether this is a generated column
	// The
	public String getTABLE_CAT() {
		return TABLE_CAT;
	}
	public void setTABLE_CAT(String tABLE_CAT) {
		TABLE_CAT = tABLE_CAT;
	}
	public String getTABLE_SCHEM() {
		return TABLE_SCHEM;
	}
	public void setTABLE_SCHEM(String tABLE_SCHEM) {
		TABLE_SCHEM = tABLE_SCHEM;
	}
	public String getTABLE_NAME() {
		return TABLE_NAME;
	}
	public void setTABLE_NAME(String tABLE_NAME) {
		TABLE_NAME = tABLE_NAME;
	}
	public String getCOLUMN_NAME() {
		return COLUMN_NAME;
	}
	public void setCOLUMN_NAME(String cOLUMN_NAME) {
		COLUMN_NAME = cOLUMN_NAME;
	}
	public String getDATA_TYPE() {
		return DATA_TYPE;
	}
	public void setDATA_TYPE(String dATA_TYPE) {
		DATA_TYPE = dATA_TYPE;
	}
	public String getTYPE_NAME() {
		return TYPE_NAME;
	}
	public void setTYPE_NAME(String tYPE_NAME) {
		TYPE_NAME = tYPE_NAME;
	}
	public int getCOLUMN_SIZE() {
		return COLUMN_SIZE;
	}
	public void setCOLUMN_SIZE(int cOLUMN_SIZE) {
		COLUMN_SIZE = cOLUMN_SIZE;
	}
	public int getBUFFER_LENGTH() {
		return BUFFER_LENGTH;
	}
	public void setBUFFER_LENGTH(int bUFFER_LENGTH) {
		BUFFER_LENGTH = bUFFER_LENGTH;
	}
	public int getDECIMAL_DIGITS() {
		return DECIMAL_DIGITS;
	}
	public void setDECIMAL_DIGITS(int dECIMAL_DIGITS) {
		DECIMAL_DIGITS = dECIMAL_DIGITS;
	}
	public int getNUM_PREC_RADIX() {
		return NUM_PREC_RADIX;
	}
	public void setNUM_PREC_RADIX(int nUM_PREC_RADIX) {
		NUM_PREC_RADIX = nUM_PREC_RADIX;
	}
	public int getNULLABLE() {
		return NULLABLE;
	}
	public void setNULLABLE(int nULLABLE) {
		NULLABLE = nULLABLE;
	}
	public String getCOLUMN_DEF() {
		return COLUMN_DEF;
	}
	public void setCOLUMN_DEF(String cOLUMN_DEF) {
		COLUMN_DEF = cOLUMN_DEF;
	}
	public int getSQL_DATA_TYPE() {
		return SQL_DATA_TYPE;
	}
	public void setSQL_DATA_TYPE(int sQL_DATA_TYPE) {
		SQL_DATA_TYPE = sQL_DATA_TYPE;
	}
	public int getSQL_DATETIME_SUB() {
		return SQL_DATETIME_SUB;
	}
	public void setSQL_DATETIME_SUB(int sQL_DATETIME_SUB) {
		SQL_DATETIME_SUB = sQL_DATETIME_SUB;
	}
	public int getCHAR_OCTET_LENGTH() {
		return CHAR_OCTET_LENGTH;
	}
	public void setCHAR_OCTET_LENGTH(int cHAR_OCTET_LENGTH) {
		CHAR_OCTET_LENGTH = cHAR_OCTET_LENGTH;
	}
	public int getORDINAL_POSITION() {
		return ORDINAL_POSITION;
	}
	public void setORDINAL_POSITION(int oRDINAL_POSITION) {
		ORDINAL_POSITION = oRDINAL_POSITION;
	}
	public String getIS_NULLABLE() {
		return IS_NULLABLE;
	}
	public void setIS_NULLABLE(String iS_NULLABLE) {
		IS_NULLABLE = iS_NULLABLE;
	}
	public String getSCOPE_CATALOG() {
		return SCOPE_CATALOG;
	}
	public void setSCOPE_CATALOG(String sCOPE_CATALOG) {
		SCOPE_CATALOG = sCOPE_CATALOG;
	}
	public String getSCOPE_SCHEMA() {
		return SCOPE_SCHEMA;
	}
	public void setSCOPE_SCHEMA(String sCOPE_SCHEMA) {
		SCOPE_SCHEMA = sCOPE_SCHEMA;
	}
	public String getSCOPE_TABLE() {
		return SCOPE_TABLE;
	}
	public void setSCOPE_TABLE(String sCOPE_TABLE) {
		SCOPE_TABLE = sCOPE_TABLE;
	}
	public short getSOURCE_DATA_TYPE() {
		return SOURCE_DATA_TYPE;
	}
	public void setSOURCE_DATA_TYPE(short sOURCE_DATA_TYPE) {
		SOURCE_DATA_TYPE = sOURCE_DATA_TYPE;
	}
	public String getIS_AUTOINCREMENT() {
		return IS_AUTOINCREMENT;
	}
	public void setIS_AUTOINCREMENT(String iS_AUTOINCREMENT) {
		IS_AUTOINCREMENT = iS_AUTOINCREMENT;
	}
	public String getIS_GENERATEDCOLUMN() {
		return IS_GENERATEDCOLUMN;
	}
	public void setIS_GENERATEDCOLUMN(String iS_GENERATEDCOLUMN) {
		IS_GENERATEDCOLUMN = iS_GENERATEDCOLUMN;
	}

}
